<?php
//Header("Location:page/index.php");
define('PHPROOT_PATH',str_replace('\\', '/', dirname(__FILE__)));

if(is_file(PHPROOT_PATH.'/etc/s_config.inc.php')){
	$config = array(
		'url_model'=>'2',
		'control' =>'login',
		'action' => 'index'
	);
	require_once PHPROOT_PATH.'/etc/s_config.inc.php';
	require_once PHPROOT_PATH.'/include/s_system_init.php';
	if(!is_writable(PHPSESSION_PATH)){
		exit(PHPSESSION_PATH.'不可写,请创建并且设该目录为777权限再尝试！');
	}
	$control = new S_Controller();		//实例化控制器
	$control->run();
} else {
	Header("Location:./exsit.php");
}
?>
